I have the same problem ans I need to implement the voice record of calls and I need help. What is it better storage, USB Drive or MicroSD? . And What need to change to Record Calls?. Then I need a cron or something similar to delete or clean de folder every 30 days.
if you want to record for call in, you can setup as this way
[DID_trunk_1]
include = DID_trunk_1_default
[DID_trunk_1_default]
exten = s,1,ExecIf($[ "${CALLERID(num)}"="" ]?SetCallerPres(unavailable))
exten = s,2,ExecIf($[ "${CALLERID(num)}"="" ]?Set(CALLERID(all)=unknown <0000000>))
exten = s,3,MixMonitor(/mnt/usb/${CALLERID(number)}-CallOUT-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}.wav,b)
exten = s,4,Goto(default,6000,1)
if you want to record for call out, you can setup as this way
[CallingRule_openvox]
exten = _9X.,1,MixMonitor(/mnt/usb/${CALLERID(number)}-CallOUT-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}.wav,b)
exten = _9X.,2,Macro(trunkdial-failover-0.3,${group_1}/${EXTEN:0},,trunk_1,)
you can write a script and add to /flash/cron/crontabs/root, if still have problem, pls contact me via skype
sorry by delay but I can not testing until yesterday.
Thank you very much for all. The code it is working but i have problems with the outside calls.
The inside calls work properly and listen all the caller and the received.
The outside call, I listen the received but they do not listen to me. And If I open de record file, there is nothing, only noise and nothing, but nobody speaking.
I'd tried to check with the paramenter of MixMonitor v,V and W, but I do not view any change.
If I comment the line with the MixMonitor, the outside calls work properly. But there is not records.
after test differents options i found the solution. Perhaps help to somebody too.
The first, but i do not know if it is necesary, I add in the queues.conf the line
Set (MONNITOR_OPTIONS=V(3)) ; In my case the problem it was recording the speaker.
The second and I think the solution it to change de codec used from G729 to U-Law.
Now it is working properly, inside and outside calls records.